public class Constructor2{
	public static void main(String [] args ){
		Person p1 = new Person();
		System.out.println(p1.age);
		Person p2 = new Person("nn",30);
		System.out.println(p2.age + "\t" + p2.name);
	}
}

class Person{
	String name;
	int  age;
	public Person(){
		age = 18;
	}
	public Person(String pName ,int pAge){
		name = pName;
		age = pAge;
	}
} 